package com.ce.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ce.dao.GoodsDao;
import com.ce.entity.Goods;
import com.ce.service.GoodsService;
/**
 * 商品Service实现类
 * @author zrj&YJ
 *
 */
@Service("goodservice")
public class GoodsServiceImpl implements GoodsService { 
	
	@Resource
	private GoodsDao goodsDao;
	
	@Override
	public List<Goods> find(Map<String, Object> map) {
		return goodsDao.find(map);
	}

	@Override
	public Long getTotal(Map<String, Object> map) {
		return goodsDao.getTotal(map);
	}

	@Override
	public int update(Goods goods) {
		return goodsDao.update(goods);
	}

	@Override
	public int add(Goods goods) {
		return goodsDao.add(goods);
	}

	@Override
	public int delete(Integer id) {
		return goodsDao.delete(id);
	}
	
}
   